package com.wang.kafkastudy.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class KafkaConfig {

    public static final String USER_LOG_TOPIC_NAME = "user-log";
    @Bean
    public NewTopic userLogTopic() {
        return new NewTopic(USER_LOG_TOPIC_NAME, 1, (short) 1);
    }
}
